/* 管理员界面样式 */
.admin-container {
  padding: 20px;
  background-color: #f5f7fa;
  min-height: calc(100vh - 60px);
}

/* 标签页样式 */
.admin-tabs {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.admin-tabs .el-tabs__header {
  margin-bottom: 0;
  background-color: #f5f7fa;
}

.admin-tabs .el-tabs__item {
  height: 50px;
  line-height: 50px;
  font-size: 15px;
}

.admin-tabs .el-tabs__item.is-active {
  background-color: #fff;
  border-bottom: 2px solid #409EFF;
  font-weight: 600;
  color: #409EFF;
}

.admin-tabs .el-tabs__active-bar {
  background-color: #409EFF;
  height: 3px;
}

/* 内容区域样式 */
.admin-content {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
  padding: 20px;
  min-height: 500px;
}

/* 管理面板共享样式 */
.admin-panel {
  width: 100%;
}

/* 仪表盘卡片样式 */
.overview-card {
  height: 160px;
  transition: all 0.3s ease;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
}

.card-header .el-icon {
  margin-right: 8px;
  font-size: 20px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 90px;
  padding: 0 15px;
}

.card-value {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 12px;
}

.card-info {
  font-size: 14px;
  color: #909399;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.highlight {
  color: #409EFF;
  font-weight: bold;
  margin-left: 5px;
}

.highlight.up {
  color: #67C23A;
}

.highlight.down {
  color: #F56C6C;
}

.user-card {
  border-top: 3px solid #409EFF;
}

.user-card .el-icon {
  color: #409EFF;
}

.question-card {
  border-top: 3px solid #E6A23C;
}

.question-card .el-icon {
  color: #E6A23C;
}

.answer-card {
  border-top: 3px solid #67C23A;
}

.answer-card .el-icon {
  color: #67C23A;
}

.visit-card {
  border-top: 3px solid #F56C6C;
}

.visit-card .el-icon {
  color: #F56C6C;
}

/* 图表样式 */
.chart-row {
  margin-top: 30px;
  margin-bottom: 30px;
}

.chart-card {
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
}

.chart-container {
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

/* 待处理事项卡片 */
.pending-tasks-card {
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
}

.task-group {
  margin-bottom: 20px;
}

.task-group h4 {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: #606266;
  font-size: 16px;
  font-weight: 600;
}

.task-group h4 .el-icon {
  margin-right: 8px;
  color: #E6A23C;
  font-size: 18px;
}

.task-footer {
  margin-top: 10px;
  text-align: right;
}

/* 操作栏样式 */
.user-actions-bar,
.question-actions-bar,
.answer-actions-bar,
.comment-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background-color: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
}

.search-bar,
.search-filters {
  display: flex;
  gap: 15px;
  flex: 1;
  align-items: center;
}

.search-input {
  width: 300px;
}

/* 表格样式 */
.el-table {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
}

.el-table th {
  background-color: #f5f7fa;
  color: #606266;
  font-weight: 600;
}

/* 分页样式 */
.pagination {
  margin-top: 25px;
  display: flex;
  justify-content: center;
}

/* 内容预览 */
.content-preview {
  max-height: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  color: #606266;
  line-height: 1.5;
}

/* 问题内容 */
.question-content {
  white-space: pre-wrap;
  margin-bottom: 25px;
  line-height: 1.6;
  color: #303133;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 4px;
}

/* 元数据信息 */
.question-meta,
.answer-meta {
  display: flex;
  gap: 20px;
  color: #909399;
  margin-top: 15px;
  flex-wrap: wrap;
}

/* 对话框样式 */
.el-dialog__header {
  border-bottom: 1px solid #ebeef5;
  padding: 15px 20px;
}

.el-dialog__body {
  padding: 20px;
}

.el-dialog__footer {
  border-top: 1px solid #ebeef5;
  padding: 15px 20px;
}

.card-header .header-left {
  display: flex;
  align-items: center;
}

.task-table-wrapper {
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.system-notification-timeline {
  padding: 0 10px;
  max-height: 300px;
  overflow-y: auto;
} 